import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
        int[] array = {3,5,2,10,9,8,17};
        testSelectSort(array);
        Sort.inserSort(array);
        System.out.println(Arrays.toString(array));

    }

    public static void testSelectSort(int[] array) {
        int[] tmpArray = Arrays.copyOf(array,2*array.length);
        long startTime =  System.currentTimeMillis();
        Sort.selectSort(tmpArray);
        long endTime = System.currentTimeMillis();
        System.out.println("选择排序:"+(endTime - startTime));
    }
}
